﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AliyunOSServiceLib
{
    public class AliyunOSServiceSettins
    {
        /// <summary>
        /// BucketName
        /// </summary>
        public string BucketName { get; set; }
        /// <summary>
        /// 是否自定义域名绑定到存储空间上
        /// </summary>
        public bool IsCname { get; set; }

        public string AccessKeyId { get; set; }

        public string AccessKeySecret { get; set; }
        /// <summary>
        /// OSS服务器域名
        /// </summary>
        public string Endpoint { get; set; }
        /// <summary>
        /// ConnectionLimit
        /// </summary>
        public int ConnectionLimit { get; set; }
        /// <summary>
        /// 请求失败后最大的重试次数
        /// </summary>
        public int MaxErrorRetry { get; set; }
        /// <summary>
        /// 设置连接超时时间，单位：毫秒，默认不超时
        /// </summary>
        public int ConnectionTimeout { get; set; }
        /// <summary>
        /// 图片压缩参数设置
        /// </summary>
        public string Process { get; set; }
    }
}
